#pragma once

class CKtvFireDlg :  public CDialogImpl<CKtvFireDlg>
{
public:
	CKtvFireDlg(void);
	~CKtvFireDlg(void);

	enum { IDD = IDD_DLG_ROOM_FIRE };

	CEdit  m_editPasswd;
	int m_nEnableFire;

	BEGIN_MSG_MAP(CKtvFireDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
		COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
		COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
		COMMAND_ID_HANDLER(IDC_BTN_SEND, OnCloseCmd)
		COMMAND_ID_HANDLER(IDC_BTN_CANCEL, OnCloseCmd)
				
	END_MSG_MAP()
    

	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	
    void SetFireEnable( BOOL enable = TRUE );
	int  IsFireEnable( void );

	int ResetDlgText(void);

	BOOL CheckPass( void );

};
